<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class SyArea extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sy_area', function (Blueprint $table) {
             $table->engine = 'MyISAM';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->increments('AreaId')->nullable(false)->comment('');
			$table->integer('Fid')->nullable()->default(0)->comment('');
			$table->string('AreaName', 60)->nullable(false)->default('')->comment('');
			$table->integer('AreaProperty')->nullable()->default(1)->comment('');
			$table->string('area_number', 30)->nullable()->default(null)->comment('');
			$table->string('area_manager', 30)->nullable()->default(null)->comment('');
			$table->string('connect_phone', 30)->nullable()->default(null)->comment('');
			$table->string('area_img', 60)->nullable()->default(null)->comment('');
			$table->string('area_icon', 60)->nullable()->default(null)->comment('区域图标');
			$table->integer('area_order')->nullable()->default(0)->comment('');
			$table->text('area_text')->nullable()->comment('');
			$table->integer('isJF')->nullable(false)->default(0)->comment('');
			$table->string('Co_ID', 200)->nullable()->default('')->comment('');
			$table->string('lnglat', 100)->nullable()->default('')->comment('');
			$table->integer('area_code')->nullable()->default(null)->comment('');
			$table->unsignedInteger('_lft')->nullable(false)->comment('');
			$table->unsignedInteger('_rgt')->nullable(false)->comment('');
			$table->boolean('is_default')->nullable(false)->default(0)->comment('');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sy_area');
    }
}
